package OfficeServer.office.network;

public class RequestQueueManager implements Runnable {
    private static boolean interupt = false;

    @Override
    public void run() {
	while (!Thread.interrupted()) {
	    if (RequestQueue.hasWork() && !interupt) {
		RequestQueue.doWork();
	    }
	    Thread.yield();
	}
    }

    /**
     * @return the interupt
     */
    public static boolean isInterupt() {
	return interupt;
    }

    /**
     * @param interupt
     *            the interupt to set
     */
    public static void setInterupt(boolean interupt) {
	RequestQueueManager.interupt = interupt;
    }

}
